package GUI;

import java.awt.BorderLayout;
import java.awt.EventQueue;
import GUI.*;

import javax.swing.JFrame;
import javax.swing.JPanel;
import javax.swing.border.EmptyBorder;
import javax.swing.JLabel;
import java.awt.Font;
import javax.swing.JButton;
import javax.swing.JProgressBar;
import java.awt.Button;
import java.awt.Toolkit;
import javax.swing.JToggleButton;
import javax.swing.ImageIcon;
import java.awt.event.ActionListener;
import java.awt.event.ActionEvent;

public class MenuInicial extends JFrame {

	private JPanel contentPane;

	/**
	 * Launch the application.
	 */
	public static void main(String[] args) {
		EventQueue.invokeLater(new Runnable() {
			public void run() {
				try {
					MenuInicial frame = new MenuInicial();
					frame.setVisible(true);
				} catch (Exception e) {
					e.printStackTrace();
				}
			}
		});
	}

	/**
	 * Create the frame.
	 */
	public MenuInicial() {
		setIconImage(Toolkit.getDefaultToolkit().getImage("C:\\eclipse\\icone\\incon.png"));
		setResizable(false);
		setTitle("<Menu.Inicial>");
		setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
		setBounds(100, 100, 800, 600);
		contentPane = new JPanel();
		contentPane.setBorder(new EmptyBorder(5, 5, 5, 5));
		setContentPane(contentPane);
		contentPane.setLayout(null);
		
		JLabel label = new JLabel("<Menu.Inicial>");
		label.setFont(new Font("Lucida Console", Font.PLAIN, 30));
		label.setBounds(228, 23, 252, 68);
		contentPane.add(label);
		
		JButton btnJogar = new JButton("Jogar");
		btnJogar.addActionListener(new ActionListener() {
			public void actionPerformed(ActionEvent arg0) {
				TipoJogo tjogo = new TipoJogo();
			}
		});
		btnJogar.setBounds(72, 95, 89, 23);
		contentPane.add(btnJogar);
		
		JButton btnRanking = new JButton("Ranking");
		btnRanking.setBounds(72, 213, 89, 23);
		contentPane.add(btnRanking);
		
		JButton btnSobre = new JButton("Sobre");
		btnSobre.setBounds(72, 331, 89, 23);
		contentPane.add(btnSobre);
		
		JButton btnSair = new JButton("Sair");
		btnSair.setBounds(72, 449, 89, 23);
		contentPane.add(btnSair);
		
		JToggleButton tglbtnMusica = new JToggleButton("Musica");
		tglbtnMusica.setBounds(663, 95, 121, 23);
		contentPane.add(tglbtnMusica);
		
		JButton btnAdministrador = new JButton("Administrador");
		btnAdministrador.setBounds(663, 129, 121, 23);
		contentPane.add(btnAdministrador);
	}
}
